using System;
using System.Windows.Forms;
using MyClasses.MetaViewWrappers;
using System.Runtime.InteropServices;
using Decal.Adapter.Wrappers;
using System.Collections.Generic;
using System.Collections;
using System.Xml.Linq;

namespace TankCommander
{
    public partial class PluginCore
    {
        public void initLoginEvents()
        {
            Core.CharacterFilter.LoginComplete += new EventHandler(CharacterFilter_LoginComplete);
        }

        public void CharacterFilter_LoginComplete(object s, EventArgs e)
        {
            /*      /loadui DisplaySettings      */
            Host.Actions.AddChatText("[Tank Commander] Init Complete.", 1);
            int[] myCommand1 ={ 48,39,12,15,1,4,21,9,49,4,9,19,16,12,1,25,19,5,20,20,9,14,7,19,48 };
            sendKey(myCommand1);
            int[] myCommand2 ={ 54 };
            sendKey(myCommand2);
        }

        public void destroyLoginEvents()
        {
            Core.CharacterFilter.LoginComplete -= new EventHandler(CharacterFilter_LoginComplete);
        }
    }
}